package com.engine4cloud.tdf.supervision.feign;

import com.engine4cloud.tdf.common.core.constant.SecurityConstants;
import com.engine4cloud.tdf.common.core.constant.ServiceNameConstants;
import com.engine4cloud.tdf.common.core.util.R;
import com.engine4cloud.tdf.common.data.web.response.PageInfo;
import com.engine4cloud.tdf.supervision.dto.query.DcpgInvestigationQueryDTO;
import com.engine4cloud.tdf.supervision.dto.result.DcpgInvestigationResultDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

@FeignClient(contextId = "RemoteInvestigationService", value = ServiceNameConstants.SUPERVISION_SERVER)
public interface RemoteInvestigationService {
    @PostMapping("/inner/investigation/page")
    R<PageInfo<DcpgInvestigationResultDTO>> getInvestigationPage(@RequestBody DcpgInvestigationQueryDTO dto, @RequestHeader(SecurityConstants.FROM) String from);
}
